package com.hex.ds.hdrs.app.dao;

import com.hex.bigdata.hbda.base.BaseDao;
import com.hex.bigdata.hbda.base.Page;
import com.hex.bigdata.hbda.domain.User;
import com.hex.ds.hdrs.app.po.UserConf;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public class AppUserDao extends BaseDao {

    public List<UserConf> qryAppUserList(Map map, Page page){
        return this.selectPage(UserConf.class,"com.hex.ds.hdrs.app.dao.AppUserDao.qryAppUserList",page,map);
    }

    public List<UserConf> selectAllUser(){
        return this.selectList(UserConf.class, "com.hex.ds.hdrs.app.dao.AppUserDao.selectAllUser");
    }


    public User findUserById(Map map) {
        return this.selectOne(User.class,"com.hex.ds.hdrs.app.dao.AppUserDao.findUserById",map);
    }
}
